import {
	defineStore
} from 'pinia';
import {
	ref
} from 'vue'

export const useUserStore = defineStore('ugo-user', () => {
	const token = ref('')

	function setToken(tk) {
		token.value = tk
	}

	return {
		token,
		setToken
	};
}, {
	unistorage: true, // 开启后对 state 的数据读写都将持久化
}, );